// 店铺业主相关类型定义

// 店铺业主基本信息
export interface ShopOwnerVO {
  id: number
  ownerName: string
  ownerPhone: string
  ownerIdCard?: string
  ownerType: number
  ownerTypeName: string
  companyName?: string
  companyLicense?: string
  contactAddress?: string
  email?: string
  status: number
  statusName: string
  remark?: string
  createTime: string
  updateTime: string
  // 关联的店铺列表
  shopList?: ShopOwnerRelationVO[]
}

// 店铺业主关联关系
export interface ShopOwnerRelationVO {
  id: number
  shopId: number
  shopName: string
  ownerId: number
  ownerName: string
  relationType: number
  relationTypeName: string
  ownershipRatio?: number
  leaseStartDate?: string
  leaseEndDate?: string
  rentPrice?: number
  depositAmount?: number
  contractNumber?: string
  contractFile?: string
  isPrimary: number
  status: number
  statusName: string
  remark?: string
  createTime: string
  updateTime: string
}

export interface ShopVO {
  id: number
  shopName: string
  shopCode: string
  shopType: number
  shopTypeName: string
  communityId: number
  communityName: string
  buildingId?: number
  buildingName?: string
  unitId?: number
  unitName?: string
  roomNumber?: string
  floorNumber?: number
  area?: number
  rentPrice?: number
  contactPerson?: string
  contactPhone?: string
  businessLicense?: string
  status: number
  statusName: string
  remark?: string
  createTime: string
  updateTime: string
}

// 搜索表单类型
export interface ShopOwnerSearchForm {
  shopId?: number | null
  ownerType?: number | null
  ownerName?: string
  phone?: string
  status?: number | null
}

// 分页信息类型
export interface PaginationInfo {
  current: number
  size: number
  total: number
}
